<script>
$(document).ready(function()
{
    <?php 
        if (isset($notify) && $notify != "")
        {
            if ($notify == "create_information_success") {
	            $type = "success";
				$title = "Thông báo";
				$text = "Thêm mới Thông tin thành công.";
				$icon = "picon icon16 brocco-icon-info white";
	        } elseif ($notify == "update_information_success") {
	            $type = "success";
				$title = "Thông báo";
				$text = "Chỉnh sửa Thông tin thành công.";
				$icon = "picon icon16 brocco-icon-info white";
	        } elseif ($notify == "delete_information_success") {
				$type = "success";
				$title = "Thông báo";
				$text = "Xoá Thông tin thành công.";
				$icon = "picon icon16 brocco-icon-info white";
			}
            ?>
            $.pnotify({
                type: '<?=$type?>',
                title: '<?=$title?>',
                text: '<?=$text?>',
                icon: '<?=$icon?>',
                opacity: 0.9,
                history: false,
                sticker: false
            });
            <?
        }
    ?>
});
</script>
<div class="row-fluid">
    <div class="span12">
        <div class="box gradient">
            <div class="title">
                <h4>
                    <span>Thêm mới Thông tin</span>
                </h4>
            </div>
            <div class="content" id="edit_information_form">
            	<?php include_partial('edit_information_form', array('information_form' => $information_form)) ?>
            </div>
        </div>
    </div>
</div>

<div class="row-fluid">
    <div class="span12">
        <div class="box gradient">
            <div class="title">
                <h4>
                    <span class="icon16 brocco-icon-grid"></span>
			        <span>Danh sách Thông tin</span>
                </h4>
            </div>
            <div class="content" id="information_list">
            	<?php include_partial('information_list', array('informations' => $informations)) ?>
            </div>
        </div>
    </div>
</div>